/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * SobreSistema.java
 *
 * Created on 25/08/2011, 08:08:54
 */
package sisgea.view;

import java.awt.Dimension;

/**
 *
 * @author Usuario
 */
public class GUISobre extends javax.swing.JInternalFrame {

    /** Creates new form SobreSistema */
    public GUISobre() {
        initComponents();
    }
    public void setPosicao(){
        Dimension d = this.getDesktopPane().getSize();
        this.setLocation((d.width - this.getSize().width)/2,(d.height - this.getSize().height)/2);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jlNomeAplicativo = new javax.swing.JLabel();
        jlVersaoAplicativo = new javax.swing.JLabel();
        jlAutorAplicativo = new javax.swing.JLabel();
        jlDescricaoAplicativo = new javax.swing.JLabel();
        tfAutor = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        taDescricao = new javax.swing.JTextArea();
        jlLicencaAplicativo = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        taLicenca = new javax.swing.JTextArea();
        bFechar = new javax.swing.JButton();

        setClosable(true);
        setTitle("SISGEA - Sobre");

        jlNomeAplicativo.setText("SISGEA");

        jlVersaoAplicativo.setText("Versão 1.0");

        jlAutorAplicativo.setText("Autores");

        jlDescricaoAplicativo.setText("Descrição");

        tfAutor.setText("William Alves e Laudemir");
        tfAutor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfAutorActionPerformed(evt);
            }
        });

        taDescricao.setColumns(20);
        taDescricao.setLineWrap(true);
        taDescricao.setRows(5);
        taDescricao.setText("Sistema de gerenciamento ambiental para uso em empresas do ramo...");
        taDescricao.setWrapStyleWord(true);
        jScrollPane1.setViewportView(taDescricao);

        jlLicencaAplicativo.setText("Licença");

        taLicenca.setColumns(20);
        taLicenca.setLineWrap(true);
        taLicenca.setRows(5);
        taLicenca.setWrapStyleWord(true);
        jScrollPane2.setViewportView(taLicenca);

        bFechar.setText("Fechar");
        bFechar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bFecharActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jlNomeAplicativo)
                            .addComponent(jlVersaoAplicativo)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jlAutorAplicativo)
                                    .addComponent(jlDescricaoAplicativo)
                                    .addComponent(jlLicencaAplicativo))
                                .addGap(32, 32, 32)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 346, Short.MAX_VALUE)
                                    .addComponent(tfAutor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jScrollPane2)))))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(207, 207, 207)
                        .addComponent(bFechar)))
                .addContainerGap(55, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jlNomeAplicativo)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jlVersaoAplicativo)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlAutorAplicativo)
                    .addComponent(tfAutor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jlDescricaoAplicativo)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(6, 6, 6)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jlLicencaAplicativo)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(bFechar)
                .addContainerGap(62, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void tfAutorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfAutorActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_tfAutorActionPerformed

private void bFecharActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bFecharActionPerformed
    this.dispose();
}//GEN-LAST:event_bFecharActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bFechar;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JLabel jlAutorAplicativo;
    private javax.swing.JLabel jlDescricaoAplicativo;
    private javax.swing.JLabel jlLicencaAplicativo;
    private javax.swing.JLabel jlNomeAplicativo;
    private javax.swing.JLabel jlVersaoAplicativo;
    private javax.swing.JTextArea taDescricao;
    private javax.swing.JTextArea taLicenca;
    private javax.swing.JTextField tfAutor;
    // End of variables declaration//GEN-END:variables
}
